from typing import Optional, Dict, Any

from pydantic import BaseModel


class CommonResponseSchema(BaseModel):
    message: Optional[str] = ""
    success: bool = True
    data: Optional[Any] = None


class OptionsResponseSchema(BaseModel):
    field: str
    value: str


class TableResponseSchema(BaseModel):
    total: int
    page: int
    success: bool = True
    data: Optional[Any] = None
